package controller
{
	import flash.utils.getQualifiedClassName;
	
	import org.osflash.thunderbolt.Logger;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;
	
	import view.CommonControlBarMediator;

	public class ApplicationStartupCommand extends SimpleFabricationCommand
	{
		public static const NAME:String = getQualifiedClassName(ApplicationStartupCommand);
		
		override public function execute(notification:INotification):void
		{
			Logger.info(NAME+ " : execute()");
			
			var app:S3AIROrganizer = notification.getBody() as S3AIROrganizer;
			
			// mediator registrations 
			registerMediator(new CommonControlBarMediator(app.commonControlBar));
			 
		}
	}
}